home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / SQL and Data Base / Logic Works ERwin 3.5 / data.1 / ERTMPL32.DLL / RCDATA / 636 < prev    next >
Unknown  |  1998-01-30  |  7.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% gt2 Kopftext: 'Child' default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 43 68 69 6c 64 00 12 00 | 25 43 68 69 6c 64 00 42 |Child...|%Child.B|
|00000010| 61 73 69 63 20 53 79 6e | 74 61 78 3a 0d 0a 25 43 |asic Syn|tax:..%C|
|00000020| 68 69 6c 64 0d 0a 0d 0a | 42 61 73 69 63 20 53 79 |hild....|Basic Sy|
|00000030| 6e 74 61 78 20 45 78 61 | 6d 70 6c 65 3a 0d 0a 25 |ntax Exa|mple:..%|
|00000040| 43 68 69 6c 64 0d 0a 45 | 78 70 61 6e 73 69 6f 6e |Child..E|xpansion|
|00000050| 3a 0d 0a 4d 4f 56 49 45 | 5f 52 45 4e 54 41 4c 5f |:..MOVIE|_RENTAL_|
|00000060| 52 45 43 4f 52 00 25 43 | 68 69 6c 64 00 4a 6f 69 |RECOR.%C|hild.Joi|
|00000070| 6e 46 4b 50 4b 00 13 00 | 25 4a 6f 69 6e 46 4b 50 |nFKPK...|%JoinFKP|
|00000080| 4b 28 29 00 42 61 73 69 | 63 20 53 79 6e 74 61 78 |K().Basi|c Syntax|
|00000090| 3a 0d 0a 25 4a 6f 69 6e | 46 4b 50 4b 28 3c 63 68 |:..%Join|FKPK(<ch|
|000000a0| 69 6c 64 20 74 61 62 6c | 65 3e 2c 3c 70 61 72 65 |ild tabl|e>,<pare|
|000000b0| 6e 74 20 74 61 62 6c 65 | 3e 29 0d 0a 0d 0a 42 61 |nt table|>)....Ba|
|000000c0| 73 69 63 20 53 79 6e 74 | 61 78 20 45 78 61 6d 70 |sic Synt|ax Examp|
|000000d0| 6c 65 3a 0d 0a 25 4a 6f | 69 6e 46 4b 50 4b 28 25 |le:..%Jo|inFKPK(%|
|000000e0| 43 68 69 6c 64 2c 3a 6f | 6c 64 29 0d 0a 45 78 70 |Child,:o|ld)..Exp|
|000000f0| 61 6e 73 69 6f 6e 3a 0d | 0a 4d 4f 56 49 45 5f 52 |ansion:.|.MOVIE_R|
|00000100| 45 4e 54 41 4c 5f 52 45 | 43 4f 52 2e 6d 61 73 74 |ENTAL_RE|COR.mast|
|00000110| 65 72 5f 6e 75 6d 62 65 | 72 20 3d 20 3a 6f 6c 64 |er_numbe|r = :old|
|00000120| 5f 6d 61 73 74 65 72 5f | 6e 75 6d 62 65 72 20 61 |_master_|number a|
|00000130| 6e 64 0d 0a 4d 4f 56 49 | 45 5f 52 45 4e 54 41 4c |nd..MOVI|E_RENTAL|
|00000140| 5f 52 45 43 4f 52 2e 6d | 6f 76 69 65 5f 63 6f 70 |_RECOR.m|ovie_cop|
|00000150| 79 5f 6e 75 6d 62 65 72 | 20 3d 20 3a 6f 6c 64 5f |y_number| = :old_|
|00000160| 6d 6f 76 69 65 5f 63 6f | 70 79 5f 6e 75 6d 62 65 |movie_co|py_numbe|
|00000170| 72 0d 0a 0d 0a 46 75 6c | 6c 20 53 79 6e 74 61 78 |r....Ful|l Syntax|
|00000180| 3a 0d 0a 25 4a 6f 69 6e | 46 4b 50 4b 28 3c 63 68 |:..%Join|FKPK(<ch|
|00000190| 69 6c 64 20 74 61 62 6c | 65 3e 2c 3c 70 61 72 65 |ild tabl|e>,<pare|
|000001a0| 6e 74 20 74 61 62 6c 65 | 3e 2c 3c 63 6f 6d 70 61 |nt table|>,<compa|
|000001b0| 72 69 73 6f 6e 20 6f 70 | 3e 2c 3c 73 65 70 61 72 |rison op|>,<separ|
|000001c0| 61 74 6f 72 3e 29 0d 0a | 0d 0a 46 75 6c 6c 20 53 |ator>)..|..Full S|
|000001d0| 79 6e 74 61 78 20 45 78 | 61 6d 70 6c 65 3a 0d 0a |yntax Ex|ample:..|
|000001e0| 25 4a 6f 69 6e 46 4b 50 | 4b 28 25 43 68 69 6c 64 |%JoinFKP|K(%Child|
|000001f0| 2c 3a 6f 6c 64 2c 22 20 | 3c 3e 20 22 2c 22 20 6f |,:old," |<> "," o|
|00000200| 72 22 29 0d 0a 45 78 70 | 61 6e 73 69 6f 6e 3a 0d |r")..Exp|ansion:.|
|00000210| 0a 4d 4f 56 49 45 5f 52 | 45 4e 54 41 4c 5f 52 45 |.MOVIE_R|ENTAL_RE|
|00000220| 43 4f 52 2e 6d 61 73 74 | 65 72 5f 6e 75 6d 62 65 |COR.mast|er_numbe|
|00000230| 72 20 3c 3e 20 3a 6f 6c | 64 5f 6d 61 73 74 65 72 |r <> :ol|d_master|
|00000240| 5f 6e 75 6d 62 65 72 20 | 6f 72 0d 0a 4d 4f 56 49 |_number |or..MOVI|
|00000250| 45 5f 52 45 4e 54 41 4c | 5f 52 45 43 4f 52 2e 6d |E_RENTAL|_RECOR.m|
|00000260| 6f 76 69 65 5f 63 6f 70 | 79 5f 6e 75 6d 62 65 72 |ovie_cop|y_number|
|00000270| 20 3c 3e 20 3a 6f 6c 64 | 5f 6d 6f 76 69 65 5f 63 | <> :old|_movie_c|
|00000280| 6f 70 79 5f 6e 75 6d 62 | 65 72 00 25 4a 6f 69 6e |opy_numb|er.%Join|
|00000290| 46 4b 50 4b 28 25 43 68 | 69 6c 64 2c 3a 6f 6c 64 |FKPK(%Ch|ild,:old|
|000002a0| 29 00 4a 6f 69 6e 50 4b | 50 4b 00 14 00 25 4a 6f |).JoinPK|PK...%Jo|
|000002b0| 69 6e 50 4b 50 4b 28 29 | 00 42 61 73 69 63 20 53 |inPKPK()|.Basic S|
|000002c0| 79 6e 74 61 78 3a 0d 0a | 25 4a 6f 69 6e 50 4b 50 |yntax:..|%JoinPKP|
|000002d0| 4b 28 3c 74 61 62 6c 65 | 3e 2c 3c 63 6f 72 72 65 |K(<table|>,<corre|
|000002e0| 6c 61 74 69 6f 6e 3e 29 | 0d 0a 0d 0a 42 61 73 69 |lation>)|....Basi|
|000002f0| 63 20 53 79 6e 74 61 78 | 20 45 78 61 6d 70 6c 65 |c Syntax| Example|
|00000300| 3a 0d 0a 25 4a 6f 69 6e | 50 4b 50 4b 28 25 43 68 |:..%Join|PKPK(%Ch|
|00000310| 69 6c 64 2c 3a 6e 65 77 | 29 0d 0a 45 78 70 61 6e |ild,:new|)..Expan|
|00000320| 73 69 6f 6e 3a 0d 0a 4d | 4f 56 49 45 5f 52 45 4e |sion:..M|OVIE_REN|
|00000330| 54 41 4c 5f 52 45 43 4f | 52 2e 72 65 6e 74 69 6e |TAL_RECO|R.rentin|
|00000340| 67 5f 63 75 73 74 6f 6d | 65 72 20 3d 20 3a 6e 65 |g_custom|er = :ne|
|00000350| 77 5f 72 65 6e 74 69 6e | 67 5f 63 75 73 74 6f 6d |w_rentin|g_custom|
|00000360| 65 72 20 61 6e 64 0d 0a | 4d 4f 56 49 45 5f 52 45 |er and..|MOVIE_RE|
|00000370| 4e 54 41 4c 5f 52 45 43 | 4f 52 2e 6d 61 73 74 65 |NTAL_REC|OR.maste|
|00000380| 72 5f 6e 75 6d 62 65 72 | 20 3d 20 3a 6e 65 77 5f |r_number| = :new_|
|00000390| 6d 61 73 74 65 72 5f 6e | 75 6d 62 65 72 20 61 6e |master_n|umber an|
|000003a0| 64 0d 0a 4d 4f 56 49 45 | 5f 52 45 4e 54 41 4c 5f |d..MOVIE|_RENTAL_|
|000003b0| 52 45 43 4f 52 2e 6d 6f | 76 69 65 5f 63 6f 70 79 |RECOR.mo|vie_copy|
|000003c0| 5f 6e 75 6d 62 65 72 20 | 3d 20 3a 6e 65 77 5f 6d |_number |= :new_m|
|000003d0| 6f 76 69 65 5f 63 6f 70 | 79 5f 6e 75 6d 62 65 72 |ovie_cop|y_number|
|000003e0| 20 61 6e 64 0d 0a 4d 4f | 56 49 45 5f 52 45 4e 54 | and..MO|VIE_RENT|
|000003f0| 41 4c 5f 52 45 43 4f 52 | 2e 72 65 6e 74 61 6c 5f |AL_RECOR|.rental_|
|00000400| 72 65 63 6f 72 64 5f 64 | 61 74 65 20 3d 20 3a 6e |record_d|ate = :n|
|00000410| 65 77 5f 72 65 6e 74 61 | 6c 5f 72 65 63 6f 72 64 |ew_renta|l_record|
|00000420| 5f 64 61 74 65 0d 0a 0d | 0a 46 75 6c 6c 20 53 79 |_date...|.Full Sy|
|00000430| 6e 74 61 78 3a 0d 0a 25 | 4a 6f 69 6e 50 4b 50 4b |ntax:..%|JoinPKPK|
|00000440| 28 3c 74 61 62 6c 65 3e | 2c 3c 63 6f 72 72 65 6c |(<table>|,<correl|
|00000450| 61 74 69 6f 6e 3e 2c 3c | 63 6f 6d 70 61 72 69 73 |ation>,<|comparis|
|00000460| 6f 6e 20 6f 70 3e 2c 3c | 73 65 70 61 72 61 74 6f |on op>,<|separato|
|00000470| 72 3e 29 0d 0a 0d 0a 46 | 75 6c 6c 20 53 79 6e 74 |r>)....F|ull Synt|
|00000480| 61 78 20 45 78 61 6d 70 | 6c 65 3a 0d 0a 25 4a 6f |ax Examp|le:..%Jo|
|00000490| 69 6e 50 4b 50 4b 28 25 | 43 68 69 6c 64 2c 3a 6e |inPKPK(%|Child,:n|
|000004a0| 65 77 2c 22 20 3c 3e 20 | 22 2c 22 20 6f 72 22 29 |ew," <> |"," or")|
|000004b0| 0d 0a 45 78 70 61 6e 73 | 69 6f 6e 3a 0d 0a 4d 4f |..Expans|ion:..MO|
|000004c0| 56 49 45 5f 52 45 4e 54 | 41 4c 5f 52 45 43 4f 52 |VIE_RENT|AL_RECOR|
|000004d0| 2e 72 65 6e 74 69 6e 67 | 5f 63 75 73 74 6f 6d 65 |.renting|_custome|
|000004e0| 72 20 3c 3e 20 3a 6e 65 | 77 5f 72 65 6e 74 69 6e |r <> :ne|w_rentin|
|000004f0| 67 5f 63 75 73 74 6f 6d | 65 72 20 6f 72 0d 0a 4d |g_custom|er or..M|
|00000500| 4f 56 49 45 5f 52 45 4e | 54 41 4c 5f 52 45 43 4f |OVIE_REN|TAL_RECO|
|00000510| 52 2e 6d 61 73 74 65 72 | 5f 6e 75 6d 62 65 72 20 |R.master|_number |
|00000520| 3c 3e 20 3a 6e 65 77 5f | 6d 61 73 74 65 72 5f 6e |<> :new_|master_n|
|00000530| 75 6d 62 65 72 20 6f 72 | 0d 0a 4d 4f 56 49 45 5f |umber or|..MOVIE_|
|00000540| 52 45 4e 54 41 4c 5f 52 | 45 43 4f 52 2e 6d 6f 76 |RENTAL_R|ECOR.mov|
|00000550| 69 65 5f 63 6f 70 79 5f | 6e 75 6d 62 65 72 20 3c |ie_copy_|number <|
|00000560| 3e 20 3a 6e 65 77 5f 6d | 6f 76 69 65 5f 63 6f 70 |> :new_m|ovie_cop|
|00000570| 79 5f 6e 75 6d 62 65 72 | 20 6f 72 0d 0a 4d 4f 56 |y_number| or..MOV|
|00000580| 49 45 5f 52 45 4e 54 41 | 4c 5f 52 45 43 4f 52 2e |IE_RENTA|L_RECOR.|
|00000590| 72 65 6e 74 61 6c 5f 72 | 65 63 6f 72 64 5f 64 61 |rental_r|ecord_da|
|000005a0| 74 65 20 3c 3e 20 3a 6e | 65 77 5f 72 65 6e 74 61 |te <> :n|ew_renta|
|000005b0| 6c 5f 72 65 63 6f 72 64 | 5f 64 61 74 65 00 25 4a |l_record|_date.%J|
|000005c0| 6f 69 6e 50 4b 50 4b 28 | 25 43 68 69 6c 64 2c 3a |oinPKPK(|%Child,:|
|000005d0| 6e 65 77 29 00 53 65 74 | 46 4b 00 15 00 25 53 65 |new).Set|FK...%Se|
|000005e0| 74 46 4b 28 29 00 42 61 | 73 69 63 20 53 79 6e 74 |tFK().Ba|sic Synt|
|000005f0| 61 78 3a 0d 0a 25 53 65 | 74 46 4b 28 3c 63 68 69 |ax:..%Se|tFK(<chi|
|00000600| 6c 64 20 74 61 62 6c 65 | 3e 2c 3c 76 61 6c 75 65 |ld table|>,<value|
|00000610| 3e 29 0d 0a 0d 0a 42 61 | 73 69 63 20 53 79 6e 74 |>)....Ba|sic Synt|
|00000620| 61 78 20 45 78 61 6d 70 | 6c 65 3a 0d 0a 25 53 65 |ax Examp|le:..%Se|
|00000630| 74 46 4b 28 25 43 68 69 | 6c 64 2c 4e 55 4c 4c 29 |tFK(%Chi|ld,NULL)|
|00000640| 0d 0a 45 78 70 61 6e 73 | 69 6f 6e 3a 0d 0a 4d 4f |..Expans|ion:..MO|
|00000650| 56 49 45 5f 52 45 4e 54 | 41 4c 5f 52 45 43 4f 52 |VIE_RENT|AL_RECOR|
|00000660| 2e 6d 61 73 74 65 72 5f | 6e 75 6d 62 65 72 20 3d |.master_|number =|
|00000670| 20 4e 55 4c 4c 2c 0d 0a | 4d 4f 56 49 45 5f 52 45 | NULL,..|MOVIE_RE|
|00000680| 4e 54 41 4c 5f 52 45 43 | 4f 52 2e 6d 6f 76 69 65 |NTAL_REC|OR.movie|
|00000690| 5f 63 6f 70 79 5f 6e 75 | 6d 62 65 72 20 3d 20 4e |_copy_nu|mber = N|
|000006a0| 55 4c 4c 00 25 53 65 74 | 46 4b 28 25 43 68 69 6c |ULL.%Set|FK(%Chil|
|000006b0| 64 2c 4e 55 4c 4c 29 00 | 53 65 74 50 4b 00 16 00 |d,NULL).|SetPK...|
|000006c0| 25 53 65 74 50 4b 28 29 | 00 42 61 73 69 63 20 53 |%SetPK()|.Basic S|
|000006d0| 79 6e 74 61 78 3a 0d 0a | 25 53 65 74 50 4b 28 3c |yntax:..|%SetPK(<|
|000006e0| 74 61 62 6c 65 3e 2c 3c | 76 61 6c 75 65 3e 29 0d |table>,<|value>).|
|000006f0| 0a 0d 0a 42 61 73 69 63 | 20 53 79 6e 74 61 78 20 |...Basic| Syntax |
|00000700| 45 78 61 6d 70 6c 65 3a | 0d 0a 25 53 65 74 50 4b |Example:|..%SetPK|
|00000710| 28 25 50 61 72 65 6e 74 | 2c 4e 55 4c 4c 29 0d 0a |(%Parent|,NULL)..|
|00000720| 45 78 70 61 6e 73 69 6f | 6e 3a 0d 0a 4d 4f 56 49 |Expansio|n:..MOVI|
|00000730| 45 5f 43 4f 50 59 2e 6d | 61 73 74 65 72 5f 6e 75 |E_COPY.m|aster_nu|
|00000740| 6d 62 65 72 20 3d 20 4e | 55 4c 4c 2c 0d 0a 4d 4f |mber = N|ULL,..MO|
|00000750| 56 49 45 5f 43 4f 50 59 | 2e 6d 6f 76 69 65 5f 63 |VIE_COPY|.movie_c|
|00000760| 6f 70 79 5f 6e 75 6d 62 | 65 72 20 3d 20 4e 55 4c |opy_numb|er = NUL|
|00000770| 4c 00 25 53 65 74 50 4b | 28 25 50 61 72 65 6e 74 |L.%SetPK|(%Parent|
|00000780| 2c 4e 55 4c 4c 29 00 54 | 61 62 6c 65 4e 61 6d 65 |,NULL).T|ableName|
|00000790| 00 17 00 25 54 61 62 6c | 65 4e 61 6d 65 00 42 61 |...%Tabl|eName.Ba|
|000007a0| 73 69 63 20 53 79 6e 74 | 61 78 3a 0d 0a 25 54 61 |sic Synt|ax:..%Ta|
|000007b0| 62 6c 65 4e 61 6d 65 0d | 0a 0d 0a 42 61 73 69 63 |bleName.|...Basic|
|000007c0| 20 53 79 6e 74 61 78 20 | 45 78 61 6d 70 6c 65 3a | Syntax |Example:|
|000007d0| 0d 0a 25 54 61 62 6c 65 | 4e 61 6d 65 0d 0a 45 78 |..%Table|Name..Ex|
|000007e0| 70 61 6e 73 69 6f 6e 3a | 0d 0a 4d 4f 56 49 45 5f |pansion:|..MOVIE_|
|000007f0| 52 45 4e 54 41 4c 5f 52 | 45 43 4f 52 00 25 54 61 |RENTAL_R|ECOR.%Ta|
|00000800| 62 6c 65 4e 61 6d 65 00 | 41 63 74 69 6f 6e 73 00 |bleName.|Actions.|
|00000810| 18 00 25 41 63 74 69 6f | 6e 73 28 29 00 42 61 73 |..%Actio|ns().Bas|
|00000820| 69 63 20 53 79 6e 74 61 | 78 3a 0d 0a 25 41 63 74 |ic Synta|x:..%Act|
|00000830| 69 6f 6e 73 28 3c 73 65 | 70 61 72 61 74 6f 72 3e |ions(<se|parator>|
|00000840| 29 0d 0a 0d 0a 42 61 73 | 69 63 20 53 79 6e 74 61 |)....Bas|ic Synta|
|00000850| 78 20 45 78 61 6d 70 6c | 65 3a 0d 0a 25 41 63 74 |x Exampl|e:..%Act|
|00000860| 69 6f 6e 73 28 22 2c 20 | 22 29 0d 0a 45 78 70 61 |ions(", |")..Expa|
|00000870| 6e 73 69 6f 6e 3a 0d 0a | 44 45 4c 45 54 45 2c 20 |nsion:..|DELETE, |
|00000880| 49 4e 53 45 52 54 2c 20 | 55 50 44 41 54 45 00 25 |INSERT, |UPDATE.%|
|00000890| 41 63 74 69 6f 6e 73 28 | 22 2c 20 22 29 00 41 63 |Actions(|", ").Ac|
|000008a0| 74 69 6f 6e 00 19 00 25 | 41 63 74 69 6f 6e 00 42 |tion...%|Action.B|
|000008b0| 61 73 69 63 20 53 79 6e | 74 61 78 3a 0d 0a 25 41 |asic Syn|tax:..%A|
|000008c0| 63 74 69 6f 6e 0d 0a 0d | 0a 42 61 73 69 63 20 53 |ction...|.Basic S|
|000008d0| 79 6e 74 61 78 20 45 78 | 61 6d 70 6c 65 3a 0d 0a |yntax Ex|ample:..|
|000008e0| 25 41 63 74 69 6f 6e 0d | 0a 45 78 70 61 6e 73 69 |%Action.|.Expansi|
|000008f0| 6f 6e 3a 0d 0a 44 45 4c | 45 54 45 00 25 41 63 74 |on:..DEL|ETE.%Act|
|00000900| 69 6f 6e 00 56 65 72 62 | 50 68 72 61 73 65 00 1a |ion.Verb|Phrase..|
|00000910| 00 25 56 65 72 62 50 68 | 72 61 73 65 00 42 61 73 |.%VerbPh|rase.Bas|
|00000920| 69 63 20 53 79 6e 74 61 | 78 3a 0d 0a 25 56 65 72 |ic Synta|x:..%Ver|
|00000930| 62 50 68 72 61 73 65 0d | 0a 0d 0a 42 61 73 69 63 |bPhrase.|...Basic|
|00000940| 20 53 79 6e 74 61 78 20 | 45 78 61 6d 70 6c 65 3a | Syntax |Example:|
|00000950| 0d 0a 25 56 65 72 62 50 | 68 72 61 73 65 0d 0a 45 |..%VerbP|hrase..E|
|00000960| 78 70 61 6e 73 69 6f 6e | 3a 0d 0a 69 73 20 72 65 |xpansion|:..is re|
|00000970| 6e 74 65 64 20 75 6e 64 | 65 72 00 25 56 65 72 62 |nted und|er.%Verb|
|00000980| 50 68 72 61 73 65 00 50 | 4b 44 65 63 6c 00 1b 00 |Phrase.P|KDecl...|
|00000990| 25 50 4b 44 65 63 6c 28 | 29 00 42 61 73 69 63 20 |%PKDecl(|).Basic |
|000009a0| 53 79 6e 74 61 78 3a 0d | 0a 25 50 4b 44 65 63 6c |Syntax:.|.%PKDecl|
|000009b0| 28 3c 6f 6c 64 20 70 72 | 65 66 69 78 3e 2c 3c 6e |(<old pr|efix>,<n|
|000009c0| 65 77 20 70 72 65 66 69 | 78 3e 29 0d 0a 0d 0a 42 |ew prefi|x>)....B|
|000009d0| 61 73 69 63 20 53 79 6e | 74 61 78 20 45 78 61 6d |asic Syn|tax Exam|
|000009e0| 70 6c 65 3a 0d 0a 25 50 | 4b 44 65 63 6c 28 2c 6e |ple:..%P|KDecl(,n|
|000009f0| 65 77 29 0d 0a 45 78 70 | 61 6e 73 69 6f 6e 3a 0d |ew)..Exp|ansion:.|
|00000a00| 0a 3a 6e 65 77 5f 6d 61 | 73 74 65 72 5f 6e 75 6d |.:new_ma|ster_num|
|00000a10| 62 65 72 20 69 6e 74 65 | 67 65 72 2c 0d 0a 3a 6e |ber inte|ger,..:n|
|00000a20| 65 77 5f 6d 6f 76 69 65 | 5f 63 6f 70 79 5f 6e 75 |ew_movie|_copy_nu|
|00000a30| 6d 62 65 72 20 69 6e 74 | 65 67 65 72 0d 0a 0d 0a |mber int|eger....|
|00000a40| 46 75 6c 6c 20 53 79 6e | 74 61 78 3a 0d 0a 25 50 |Full Syn|tax:..%P|
|00000a50| 4b 44 65 63 6c 28 3c 6f | 6c 64 20 70 72 65 66 69 |KDecl(<o|ld prefi|
|00000a60| 78 3e 2c 3c 6e 65 77 20 | 70 72 65 66 69 78 3e 2c |x>,<new |prefix>,|
|00000a70| 3c 73 65 70 61 72 61 74 | 6f 72 3e 29 0d 0a 0d 0a |<separat|or>)....|
|00000a80| 46 75 6c 6c 20 53 79 6e | 74 61 78 20 45 78 61 6d |Full Syn|tax Exam|
|00000a90| 70 6c 65 3a 0d 0a 25 50 | 4b 44 65 63 6c 28 2c 6e |ple:..%P|KDecl(,n|
|00000aa0| 65 77 2c 22 2c 20 22 29 | 0d 0a 45 78 70 61 6e 73 |ew,", ")|..Expans|
|00000ab0| 69 6f 6e 3a 0d 0a 3a 6e | 65 77 5f 6d 61 73 74 65 |ion:..:n|ew_maste|
|00000ac0| 72 5f 6e 75 6d 62 65 72 | 20 69 6e 74 65 67 65 72 |r_number| integer|
|00000ad0| 2c 0d 0a 3a 6e 65 77 5f | 6d 6f 76 69 65 5f 63 6f |,..:new_|movie_co|
|00000ae0| 70 79 5f 6e 75 6d 62 65 | 72 20 69 6e 74 65 67 65 |py_numbe|r intege|
|00000af0| 72 00 25 50 4b 44 65 63 | 6c 28 2c 6e 65 77 29 00 |r.%PKDec|l(,new).|
|00000b00| 50 4b 00 1c 00 25 50 4b | 28 29 00 42 61 73 69 63 |PK...%PK|().Basic|
|00000b10| 20 53 79 6e 74 61 78 3a | 0d 0a 25 50 4b 28 29 0d | Syntax:|..%PK().|
|00000b20| 0a 0d 0a 42 61 73 69 63 | 20 53 79 6e 74 61 78 20 |...Basic| Syntax |
|00000b30| 45 78 61 6d 70 6c 65 3a | 0d 0a 25 50 4b 28 29 0d |Example:|..%PK().|
|00000b40| 0a 45 78 70 61 6e 73 69 | 6f 6e 3a 0d 0a 6d 61 73 |.Expansi|on:..mas|
|00000b50| 74 65 72 5f 6e 75 6d 62 | 65 72 2c 20 6d 6f 76 69 |ter_numb|er, movi|
|00000b60| 65 5f 63 6f 70 79 5f 6e | 75 6d 62 65 72 2c 2e 2e |e_copy_n|umber,..|
|00000b70| 2e 0d 0a 0d 0a 46 75 6c | 6c 20 53 79 6e 74 61 78 |.....Ful|l Syntax|
|00000b80| 3a 0d 0a 25 50 4b 28 3c | 73 65 70 61 72 61 74 6f |:..%PK(<|separato|
|00000b90| 72 3e 2c 3c 66 75 6e 63 | 74 69 6f 6e 3e 2c 3c 70 |r>,<func|tion>,<p|
|00000ba0| 72 65 66 69 78 3e 29 0d | 0a 0d 0a 46 75 6c 6c 20 |refix>).|...Full |
|00000bb0| 53 79 6e 74 61 78 20 45 | 78 61 6d 70 6c 65 3a 0d |Syntax E|xample:.|
|00000bc0| 0a 25 50 4b 28 22 20 6f | 72 20 22 2c 66 2c 25 54 |.%PK(" o|r ",f,%T|
|00000bd0| 61 62 6c 65 4e 61 6d 65 | 29 0d 0a 45 78 70 61 6e |ableName|)..Expan|
|00000be0| 73 69 6f 6e 3a 0d 0a 66 | 28 4d 4f 56 49 45 5f 43 |sion:..f|(MOVIE_C|
|00000bf0| 4f 50 59 2e 6d 61 73 74 | 65 72 5f 6e 75 6d 62 65 |OPY.mast|er_numbe|
|00000c00| 72 29 20 6f 72 0d 0a 66 | 28 4d 4f 56 49 45 5f 43 |r) or..f|(MOVIE_C|
|00000c10| 4f 50 59 2e 6d 6f 76 69 | 65 5f 63 6f 70 79 5f 6e |OPY.movi|e_copy_n|
|00000c20| 75 6d 62 65 72 29 2e 2e | 2e 00 25 50 4b 28 22 20 |umber)..|..%PK(" |
|00000c30| 6f 72 20 22 29 00 50 61 | 72 61 6d 50 61 73 73 00 |or ").Pa|ramPass.|
|00000c40| 1d 00 25 50 61 72 61 6d | 50 61 73 73 28 29 00 42 |..%Param|Pass().B|
|00000c50| 61 73 69 63 20 53 79 6e | 74 61 78 3a 0d 0a 25 50 |asic Syn|tax:..%P|
|00000c60| 61 72 61 6d 50 61 73 73 | 28 3c 6f 6c 64 20 70 72 |aramPass|(<old pr|
|00000c70| 65 66 69 78 3e 2c 3c 6e | 65 77 20 70 72 65 66 69 |efix>,<n|ew prefi|
|00000c80| 78 3e 29 0d 0a 0d 0a 42 | 61 73 69 63 20 53 79 6e |x>)....B|asic Syn|
|00000c90| 74 61 78 20 45 78 61 6d | 70 6c 65 3a 0d 0a 25 50 |tax Exam|ple:..%P|
|00000ca0| 61 72 61 6d 50 61 73 73 | 28 2c 6e 65 77 29 0d 0a |aramPass|(,new)..|
|00000cb0| 45 78 70 61 6e 73 69 6f | 6e 3a 0d 0a 6e 65 77 5f |Expansio|n:..new_|
|00000cc0| 6d 61 73 74 65 72 5f 6e | 75 6d 62 65 72 20 3d 20 |master_n|umber = |
|00000cd0| 6e 65 77 2e 6d 61 73 74 | 65 72 5f 6e 75 6d 62 65 |new.mast|er_numbe|
|00000ce0| 72 2c 0d 0a 6e 65 77 5f | 6d 6f 76 69 65 5f 63 6f |r,..new_|movie_co|
|00000cf0| 70 79 5f 6e 75 6d 62 65 | 72 20 3d 20 6e 65 77 2e |py_numbe|r = new.|
|00000d00| 6d 6f 76 69 65 5f 63 6f | 70 79 5f 6e 75 6d 62 65 |movie_co|py_numbe|
|00000d10| 72 2c 0d 0a 6e 65 77 5f | 67 65 6e 65 72 61 6c 5f |r,..new_|general_|
|00000d20| 63 6f 6e 64 69 74 69 6f | 6e 20 3d 20 6e 65 77 2e |conditio|n = new.|
|00000d30| 67 65 6e 65 72 61 6c 5f | 63 6f 6e 64 69 74 69 6f |general_|conditio|
|00000d40| 6e 0d 0a 0d 0a 46 75 6c | 6c 20 53 79 6e 74 61 78 |n....Ful|l Syntax|
|00000d50| 3a 0d 0a 25 50 61 72 61 | 6d 50 61 73 73 28 3c 6f |:..%Para|mPass(<o|
|00000d60| 6c 64 20 70 72 65 66 69 | 78 3e 2c 3c 6e 65 77 20 |ld prefi|x>,<new |
|00000d70| 70 72 65 66 69 78 3e 2c | 3c 70 61 72 61 6d 2f 76 |prefix>,|<param/v|
|00000d80| 61 6c 75 65 20 73 65 70 | 61 72 61 74 6f 72 3e 2c |alue sep|arator>,|
|00000d90| 3c 73 65 70 61 72 61 74 | 6f 72 3e 29 0d 0a 0d 0a |<separat|or>)....|
|00000da0| 46 75 6c 6c 20 53 79 6e | 74 61 78 20 45 78 61 6d |Full Syn|tax Exam|
|00000db0| 70 6c 65 3a 0d 0a 25 50 | 61 72 61 6d 50 61 73 73 |ple:..%P|aramPass|
|00000dc0| 28 2c 6e 65 77 2c 22 20 | 3d 20 22 2c 22 2c 20 22 |(,new," |= ",", "|
|00000dd0| 29 0d 0a 45 78 70 61 6e | 73 69 6f 6e 3a 0d 0a 6e |)..Expan|sion:..n|
|00000de0| 65 77 5f 6d 61 73 74 65 | 72 5f 6e 75 6d 62 65 72 |ew_maste|r_number|
|00000df0| 20 3d 20 6e 65 77 2e 6d | 61 73 74 65 72 5f 6e 75 | = new.m|aster_nu|
|00000e00| 6d 62 65 72 2c 0d 0a 6e | 65 77 5f 6d 6f 76 69 65 |mber,..n|ew_movie|
|00000e10| 5f 63 6f 70 79 5f 6e 75 | 6d 62 65 72 20 3d 20 6e |_copy_nu|mber = n|
|00000e20| 65 77 2e 6d 6f 76 69 65 | 5f 63 6f 70 79 5f 6e 75 |ew.movie|_copy_nu|
|00000e30| 6d 62 65 72 2c 0d 0a 6e | 65 77 5f 67 65 6e 65 72 |mber,..n|ew_gener|
|00000e40| 61 6c 5f 63 6f 6e 64 69 | 74 69 6f 6e 20 3d 20 6e |al_condi|tion = n|
|00000e50| 65 77 2e 67 65 6e 65 72 | 61 6c 5f 63 6f 6e 64 69 |ew.gener|al_condi|
|00000e60| 74 69 6f 6e 00 25 50 61 | 72 61 6d 50 61 73 73 28 |tion.%Pa|ramPass(|
|00000e70| 6f 6c 64 2c 6e 65 77 29 | 00 50 61 72 61 6d 44 65 |old,new)|.ParamDe|
|00000e80| 63 6c 00 1e 00 25 50 61 | 72 61 6d 44 65 63 6c 28 |cl...%Pa|ramDecl(|
|00000e90| 29 00 42 61 73 69 63 20 | 53 79 6e 74 61 78 3a 0d |).Basic |Syntax:.|
|00000ea0| 0a 25 50 61 72 61 6d 44 | 65 63 6c 28 3c 6f 6c 64 |.%ParamD|ecl(<old|
|00000eb0| 20 70 72 65 66 69 78 3e | 2c 3c 6e 65 77 20 70 72 | prefix>|,<new pr|
|00000ec0| 65 66 69 78 3e 29 0d 0a | 0d 0a 42 61 73 69 63 20 |efix>)..|..Basic |
|00000ed0| 53 79 6e 74 61 78 20 45 | 78 61 6d 70 6c 65 3a 0d |Syntax E|xample:.|
|00000ee0| 0a 25 50 61 72 61 6d 44 | 65 63 6c 28 2c 6e 65 77 |.%ParamD|ecl(,new|
|00000ef0| 29 0d 0a 45 78 70 61 6e | 73 69 6f 6e 3a 0d 0a 6e |)..Expan|sion:..n|
|00000f00| 65 77 5f 6d 61 73 74 65 | 72 5f 6e 75 6d 62 65 72 |ew_maste|r_number|
|00000f10| 20 69 6e 74 65 67 65 72 | 2c 0d 0a 6e 65 77 5f 6d | integer|,..new_m|
|00000f20| 6f 76 69 65 5f 63 6f 70 | 79 5f 6e 75 6d 62 65 72 |ovie_cop|y_number|
|00000f30| 20 69 6e 74 65 67 65 72 | 2c 0d 0a 6e 65 77 5f 67 | integer|,..new_g|
|00000f40| 65 6e 65 72 61 6c 5f 63 | 6f 6e 64 69 74 69 6f 6e |eneral_c|ondition|
|00000f50| 20 76 61 72 63 68 61 72 | 28 31 30 29 0d 0a 0d 0a | varchar|(10)....|
|00000f60| 46 75 6c 6c 20 53 79 6e | 74 61 78 3a 0d 0a 25 50 |Full Syn|tax:..%P|
|00000f70| 61 72 61 6d 44 65 63 6c | 28 3c 6f 6c 64 20 70 72 |aramDecl|(<old pr|
|00000f80| 65 66 69 78 3e 2c 3c 6e | 65 77 20 70 72 65 66 69 |efix>,<n|ew prefi|
|00000f90| 78 3e 2c 3c 73 65 70 61 | 72 61 74 6f 72 3e 29 0d |x>,<sepa|rator>).|
|00000fa0| 0a 0d 0a 46 75 6c 6c 20 | 53 79 6e 74 61 78 20 45 |...Full |Syntax E|
|00000fb0| 78 61 6d 70 6c 65 3a 0d | 0a 25 50 61 72 61 6d 44 |xample:.|.%ParamD|
|00000fc0| 65 63 6c 28 2c 6e 65 77 | 2c 22 2c 20 22 29 0d 0a |ecl(,new|,", ")..|
|00000fd0| 45 78 70 61 6e 73 69 6f | 6e 3a 0d 0a 6e 65 77 5f |Expansio|n:..new_|
|00000fe0| 6d 61 73 74 65 72 5f 6e | 75 6d 62 65 72 20 69 6e |master_n|umber in|
|00000ff0| 74 65 67 65 72 2c 0d 0a | 6e 65 77 5f 6d 6f 76 69 |teger,..|new_movi|
|00001000| 65 5f 63 6f 70 79 5f 6e | 75 6d 62 65 72 20 69 6e |e_copy_n|umber in|
|00001010| 74 65 67 65 72 2c 0d 0a | 6e 65 77 5f 67 65 6e 65 |teger,..|new_gene|
|00001020| 72 61 6c 5f 63 6f 6e 64 | 69 74 69 6f 6e 20 76 61 |ral_cond|ition va|
|00001030| 72 63 68 61 72 28 31 30 | 29 00 25 50 61 72 61 6d |rchar(10|).%Param|
|00001040| 44 65 63 6c 28 6f 6c 64 | 2c 6e 65 77 29 00 54 72 |Decl(old|,new).Tr|
|00001050| 69 67 67 65 72 4e 61 6d | 65 00 1f 00 25 54 72 69 |iggerNam|e...%Tri|
|00001060| 67 67 65 72 4e 61 6d 65 | 00 42 61 73 69 63 20 53 |ggerName|.Basic S|
|00001070| 79 6e 74 61 78 3a 0d 0a | 25 54 72 69 67 67 65 72 |yntax:..|%Trigger|
|00001080| 4e 61 6d 65 0d 0a 0d 0a | 42 61 73 69 63 20 53 79 |Name....|Basic Sy|
|00001090| 6e 74 61 78 20 45 78 61 | 6d 70 6c 65 3a 0d 0a 25 |ntax Exa|mple:..%|
|000010a0| 54 72 69 67 67 65 72 4e | 61 6d 65 0d 0a 45 78 70 |TriggerN|ame..Exp|
|000010b0| 61 6e 73 69 6f 6e 3a 0d | 0a 74 49 5f 4d 4f 56 49 |ansion:.|.tI_MOVI|
|000010c0| 45 5f 52 45 4e 54 41 4c | 5f 52 45 43 4f 52 00 25 |E_RENTAL|_RECOR.%|
|000010d0| 54 72 69 67 67 65 72 4e | 61 6d 65 00 43 75 73 74 |TriggerN|ame.Cust|
|000010e0| 6f 6d 54 72 69 67 67 65 | 72 44 65 66 61 75 6c 74 |omTrigge|rDefault|
|000010f0| 42 6f 64 79 00 20 00 25 | 43 75 73 74 6f 6d 54 72 |Body. .%|CustomTr|
|00001100| 69 67 67 65 72 44 65 66 | 61 75 6c 74 42 6f 64 79 |iggerDef|aultBody|
|00001110| 00 25 43 75 73 74 6f 6d | 54 72 69 67 67 65 72 44 |.%Custom|TriggerD|
|00001120| 65 66 61 75 6c 74 42 6f | 64 79 0d 0a 0d 0a 54 68 |efaultBo|dy....Th|
|00001130| 65 20 62 6f 64 79 20 6f | 66 20 61 20 64 65 66 61 |e body o|f a defa|
|00001140| 75 6c 74 20 74 72 69 67 | 67 65 72 0d 0a 77 69 74 |ult trig|ger..wit|
|00001150| 68 20 74 68 65 20 73 61 | 6d 65 20 74 79 70 65 2e |h the sa|me type.|
|00001160| 00 25 43 75 73 74 6f 6d | 54 72 69 67 67 65 72 44 |.%Custom|TriggerD|
|00001170| 65 66 61 75 6c 74 42 6f | 64 79 00 43 75 73 74 6f |efaultBo|dy.Custo|
|00001180| 6d 54 72 69 67 67 65 72 | 44 65 66 61 75 6c 74 48 |mTrigger|DefaultH|
|00001190| 65 61 64 65 72 00 21 00 | 25 43 75 73 74 6f 6d 54 |eader.!.|%CustomT|
|000011a0| 72 69 67 67 65 72 44 65 | 66 61 75 6c 74 48 65 61 |riggerDe|faultHea|
|000011b0| 64 65 72 00 25 43 75 73 | 74 6f 6d 54 72 69 67 67 |der.%Cus|tomTrigg|
|000011c0| 65 72 44 65 66 61 75 6c | 74 48 65 61 64 65 72 0d |erDefaul|tHeader.|
|000011d0| 0a 0d 0a 54 68 65 20 68 | 65 61 64 65 72 20 6f 66 |...The h|eader of|
|000011e0| 20 61 20 64 65 66 61 75 | 6c 74 20 74 72 69 67 67 | a defau|lt trigg|
|000011f0| 65 72 0d 0a 77 69 74 68 | 20 74 68 65 20 73 61 6d |er..with| the sam|
|00001200| 65 20 74 79 70 65 2e 00 | 25 43 75 73 74 6f 6d 54 |e type..|%CustomT|
|00001210| 72 69 67 67 65 72 44 65 | 66 61 75 6c 74 48 65 61 |riggerDe|faultHea|
|00001220| 64 65 72 00 43 75 73 74 | 6f 6d 54 72 69 67 67 65 |der.Cust|omTrigge|
|00001230| 72 44 65 66 61 75 6c 74 | 46 6f 6f 74 65 72 00 22 |rDefault|Footer."|
|00001240| 00 25 43 75 73 74 6f 6d | 54 72 69 67 67 65 72 44 |.%Custom|TriggerD|
|00001250| 65 66 61 75 6c 74 46 6f | 6f 74 65 72 00 25 43 75 |efaultFo|oter.%Cu|
|00001260| 73 74 6f 6d 54 72 69 67 | 67 65 72 44 65 66 61 75 |stomTrig|gerDefau|
|00001270| 6c 74 46 6f 6f 74 65 72 | 0d 0a 0d 0a 54 68 65 20 |ltFooter|....The |
|00001280| 66 6f 6f 74 65 72 20 6f | 66 20 61 20 64 65 66 61 |footer o|f a defa|
|00001290| 75 6c 74 20 74 72 69 67 | 67 65 72 0d 0a 77 69 74 |ult trig|ger..wit|
|000012a0| 68 20 74 68 65 20 73 61 | 6d 65 20 74 79 70 65 2e |h the sa|me type.|
|000012b0| 00 25 43 75 73 74 6f 6d | 54 72 69 67 67 65 72 44 |.%Custom|TriggerD|
|000012c0| 65 66 61 75 6c 74 46 6f | 6f 74 65 72 00 46 69 72 |efaultFo|oter.Fir|
|000012d0| 65 00 23 00 00 00 00 52 | 65 66 43 6c 61 75 73 65 |e.#....R|efClause|
|000012e0| 00 24 00 25 52 65 66 43 | 6c 61 75 73 65 00 42 61 |.$.%RefC|lause.Ba|
|000012f0| 73 69 63 20 53 79 6e 74 | 61 78 3a 0d 0a 25 52 65 |sic Synt|ax:..%Re|
|00001300| 66 43 6c 61 75 73 65 0d | 0a 0d 0a 42 61 73 69 63 |fClause.|...Basic|
|00001310| 20 53 79 6e 74 61 78 20 | 45 78 61 6d 70 6c 65 3a | Syntax |Example:|
|00001320| 0d 0a 25 52 65 66 43 6c | 61 75 73 65 0d 0a 45 78 |..%RefCl|ause..Ex|
|00001330| 70 61 6e 73 69 6f 6e 3a | 0d 0a 52 45 46 45 52 45 |pansion:|..REFERE|
|00001340| 4e 43 45 53 20 4e 45 57 | 20 61 73 20 6e 65 77 72 |NCES NEW| as newr|
|00001350| 6f 77 73 20 4f 4c 44 20 | 61 73 20 6f 6c 64 72 6f |ows OLD |as oldro|
|00001360| 77 73 00 25 52 65 66 43 | 6c 61 75 73 65 00 53 63 |ws.%RefC|lause.Sc|
|00001370| 6f 70 65 00 25 00 00 00 | 00 55 70 64 61 74 65 50 |ope.%...|.UpdateP|
|00001380| 61 72 65 6e 74 50 4b 00 | 26 00 00 00 00 55 70 64 |arentPK.|&....Upd|
|00001390| 61 74 65 43 68 69 6c 64 | 46 4b 00 27 00 00 00 00 |ateChild|FK.'....|
|000013a0| 55 70 64 61 74 65 50 4b | 00 28 00 00 00 00 41 74 |UpdatePK|.(....At|
|000013b0| 74 73 00 29 00 25 41 74 | 74 73 28 29 00 42 61 73 |ts.).%At|ts().Bas|
|000013c0| 69 63 20 53 79 6e 74 61 | 78 3a 0d 0a 25 41 74 74 |ic Synta|x:..%Att|
|000013d0| 73 28 29 0d 0a 0d 0a 42 | 61 73 69 63 20 53 79 6e |s()....B|asic Syn|
|000013e0| 74 61 78 20 45 78 61 6d | 70 6c 65 3a 0d 0a 25 41 |tax Exam|ple:..%A|
|000013f0| 74 74 73 28 29 0d 0a 45 | 78 70 61 6e 73 69 6f 6e |tts()..E|xpansion|
|00001400| 3a 0d 0a 6d 61 73 74 65 | 72 5f 6e 75 6d 62 65 72 |:..maste|r_number|
|00001410| 2c 20 6d 6f 76 69 65 5f | 63 6f 70 79 5f 6e 75 6d |, movie_|copy_num|
|00001420| 62 65 72 2c 20 67 65 6e | 65 72 61 6c 5f 63 6f 6e |ber, gen|eral_con|
|00001430| 64 69 74 69 6f 6e 0d 0a | 0d 0a 46 75 6c 6c 20 53 |dition..|..Full S|
|00001440| 79 6e 74 61 78 3a 0d 0a | 25 41 74 74 73 28 3c 73 |yntax:..|%Atts(<s|
|00001450| 65 70 61 72 61 74 6f 72 | 3e 2c 3c 66 75 6e 63 74 |eparator|>,<funct|
|00001460| 69 6f 6e 3e 2c 3c 70 72 | 65 66 69 78 3e 29 0d 0a |ion>,<pr|efix>)..|
|00001470| 0d 0a 46 75 6c 6c 20 53 | 79 6e 74 61 78 20 45 78 |..Full S|yntax Ex|
|00001480| 61 6d 70 6c 65 3a 0d 0a | 25 41 74 74 73 28 22 20 |ample:..|%Atts(" |
|00001490| 6f 72 20 22 2c 75 70 64 | 61 74 65 2c 25 50 61 72 |or ",upd|ate,%Par|
|000014a0| 65 6e 74 29 0d 0a 45 78 | 70 61 6e 73 69 6f 6e 3a |ent)..Ex|pansion:|
|000014b0| 0d 0a 75 70 64 61 74 65 | 28 4d 4f 56 49 45 5f 43 |..update|(MOVIE_C|
|000014c0| 4f 50 59 2e 6d 61 73 74 | 65 72 5f 6e 75 6d 62 65 |OPY.mast|er_numbe|
|000014d0| 72 29 20 6f 72 0d 0a 75 | 70 64 61 74 65 28 4d 4f |r) or..u|pdate(MO|
|000014e0| 56 49 45 5f 43 4f 50 59 | 2e 6d 6f 76 69 65 5f 63 |VIE_COPY|.movie_c|
|000014f0| 6f 70 79 5f 6e 75 6d 62 | 65 72 29 20 6f 72 20 75 |opy_numb|er) or u|
|00001500| 70 64 61 74 65 28 4d 4f | 56 49 45 5f 43 4f 50 59 |pdate(MO|VIE_COPY|
|00001510| 2e 67 65 6e 65 72 61 6c | 5f 63 6f 6e 64 69 74 69 |.general|_conditi|
|00001520| 6f 6e 29 00 25 41 74 74 | 73 28 22 2c 20 22 2c 2c |on).%Att|s(", ",,|
|00001530| 3a 6e 65 77 29 00 4e 4b | 44 65 63 6c 00 2a 00 25 |:new).NK|Decl.*.%|
|00001540| 4e 4b 44 65 63 6c 28 29 | 00 42 61 73 69 63 20 53 |NKDecl()|.Basic S|
|00001550| 79 6e 74 61 78 3a 0d 0a | 25 4e 4b 44 65 63 6c 28 |yntax:..|%NKDecl(|
|00001560| 3c 6f 6c 64 20 70 72 65 | 66 69 78 3e 2c 3c 6e 65 |<old pre|fix>,<ne|
|00001570| 77 20 70 72 65 66 69 78 | 3e 29 0d 0a 0d 0a 42 61 |w prefix|>)....Ba|
|00001580| 73 69 63 20 53 79 6e 74 | 61 78 20 45 78 61 6d 70 |sic Synt|ax Examp|
|00001590| 6c 65 3a 0d 0a 25 4e 4b | 44 65 63 6c 28 2c 6e 65 |le:..%NK|Decl(,ne|
|000015a0| 77 29 0d 0a 45 78 70 61 | 6e 73 69 6f 6e 3a 0d 0a |w)..Expa|nsion:..|
|000015b0| 3a 6e 65 77 5f 67 65 6e | 65 72 61 6c 5f 63 6f 6e |:new_gen|eral_con|
|000015c0| 64 69 74 69 6f 6e 20 76 | 61 72 63 68 61 72 28 31 |dition v|archar(1|
|000015d0| 30 29 0d 0a 46 75 6c 6c | 20 53 79 6e 74 61 78 3a |0)..Full| Syntax:|
|000015e0| 0d 0a 25 4e 4b 44 65 63 | 6c 28 3c 6f 6c 64 20 70 |..%NKDec|l(<old p|
|000015f0| 72 65 66 69 78 3e 2c 3c | 6e 65 77 20 70 72 65 66 |refix>,<|new pref|
|00001600| 69 78 3e 2c 3c 73 65 70 | 61 72 61 74 6f 72 3e 29 |ix>,<sep|arator>)|
|00001610| 0d 0a 0d 0a 46 75 6c 6c | 20 53 79 6e 74 61 78 20 |....Full| Syntax |
|00001620| 45 78 61 6d 70 6c 65 3a | 0d 0a 25 4e 4b 44 65 63 |Example:|..%NKDec|
|00001630| 6c 28 2c 6e 65 77 2c 22 | 2c 20 22 29 0d 0a 45 78 |l(,new,"|, ")..Ex|
|00001640| 70 61 6e 73 69 6f 6e 3a | 0d 0a 3a 6e 65 77 5f 67 |pansion:|..:new_g|
|00001650| 65 6e 65 72 61 6c 5f 63 | 6f 6e 64 69 74 69 6f 6e |eneral_c|ondition|
|00001660| 20 76 61 72 63 68 61 72 | 28 31 30 29 00 25 4e 4b | varchar|(10).%NK|
|00001670| 44 65 63 6c 28 2c 6e 65 | 77 29 00 4e 4b 00 2b 00 |Decl(,ne|w).NK.+.|
|00001680| 25 4e 4b 28 29 00 42 61 | 73 69 63 20 53 79 6e 74 |%NK().Ba|sic Synt|
|00001690| 61 78 3a 0d 0a 25 4e 4b | 28 29 0d 0a 0d 0a 42 61 |ax:..%NK|()....Ba|
|000016a0| 73 69 63 20 53 79 6e 74 | 61 78 20 45 78 61 6d 70 |sic Synt|ax Examp|
|000016b0| 6c 65 3a 0d 0a 25 4e 4b | 28 29 0d 0a 45 78 70 61 |le:..%NK|()..Expa|
|000016c0| 6e 73 69 6f 6e 3a 0d 0a | 67 65 6e 65 72 61 6c 5f |nsion:..|general_|
|000016d0| 63 6f 6e 64 69 74 69 6f | 6e 0d 0a 0d 0a 46 75 6c |conditio|n....Ful|
|000016e0| 6c 20 53 79 6e 74 61 78 | 3a 0d 0a 25 4e 4b 28 3c |l Syntax|:..%NK(<|
|000016f0| 73 65 70 61 72 61 74 6f | 72 3e 2c 3c 66 75 6e 63 |separato|r>,<func|
|00001700| 74 69 6f 6e 3e 2c 3c 70 | 72 65 66 69 78 3e 29 0d |tion>,<p|refix>).|
|00001710| 0a 0d 0a 46 75 6c 6c 20 | 53 79 6e 74 61 78 20 45 |...Full |Syntax E|
|00001720| 78 61 6d 70 6c 65 3a 0d | 0a 25 4e 4b 28 22 20 6f |xample:.|.%NK(" o|
|00001730| 72 20 22 2c 75 70 64 61 | 74 65 2c 25 50 61 72 65 |r ",upda|te,%Pare|
|00001740| 6e 74 29 0d 0a 45 78 70 | 61 6e 73 69 6f 6e 3a 0d |nt)..Exp|ansion:.|
|00001750| 0a 75 70 64 61 74 65 28 | 4d 4f 56 49 45 5f 43 4f |.update(|MOVIE_CO|
|00001760| 50 59 2e 67 65 6e 65 72 | 61 6c 5f 63 6f 6e 64 69 |PY.gener|al_condi|
|00001770| 74 69 6f 6e 29 00 25 4e | 4b 28 29 00 46 6f 72 45 |tion).%N|K().ForE|
|00001780| 61 63 68 50 61 72 65 6e | 74 52 65 6c 00 2c 00 25 |achParen|tRel.,.%|
|00001790| 46 6f 72 45 61 63 68 50 | 61 72 65 6e 74 52 65 6c |ForEachP|arentRel|
|000017a0| 28 29 00 42 61 73 69 63 | 20 53 79 6e 74 61 78 3a |().Basic| Syntax:|
|000017b0| 0d 0a 25 46 6f 72 45 61 | 63 68 50 61 72 65 6e 74 |..%ForEa|chParent|
|000017c0| 52 65 6c 28 29 20 7b 0d | 0a 3c 72 65 6c 61 74 69 |Rel() {.|.<relati|
|000017d0| 6f 6e 73 68 69 70 20 63 | 6f 64 65 3e 0d 0a 7d 0d |onship c|ode>..}.|
|000017e0| 0a 0d 0a 42 61 73 69 63 | 20 53 79 6e 74 61 78 20 |...Basic| Syntax |
|000017f0| 45 78 61 6d 70 6c 65 3a | 0d 0a 25 46 6f 72 45 61 |Example:|..%ForEa|
|00001800| 63 68 50 61 72 65 6e 74 | 52 65 6c 28 29 20 7b 0d |chParent|Rel() {.|
|00001810| 0a 20 20 69 6e 73 65 72 | 74 20 25 50 61 72 65 6e |. inser|t %Paren|
|00001820| 74 20 76 61 6c 75 65 73 | 28 25 50 61 72 65 6e 74 |t values|(%Parent|
|00001830| 41 74 74 73 28 22 2c 20 | 22 2c 2c 3a 6e 65 77 29 |Atts(", |",,:new)|
|00001840| 0d 0a 7d 0d 0a 45 78 70 | 61 6e 73 69 6f 6e 3a 0d |..}..Exp|ansion:.|
|00001850| 0a 69 6e 73 65 72 74 20 | 4d 4f 56 49 45 5f 43 4f |.insert |MOVIE_CO|
|00001860| 50 59 20 76 61 6c 75 65 | 73 28 3a 6e 65 77 5f 6d |PY value|s(:new_m|
|00001870| 61 73 74 65 72 5f 6e 75 | 6d 62 65 72 2c 20 3a 6e |aster_nu|mber, :n|
|00001880| 65 77 5f 6d 6f 76 69 65 | 5f 63 6f 70 79 5f 6e 75 |ew_movie|_copy_nu|
|00001890| 6d 62 65 72 2c 20 3a 6e | 65 77 5f 67 65 6e 65 72 |mber, :n|ew_gener|
|000018a0| 61 6c 5f 63 6f 6e 64 69 | 74 69 6f 6e 29 0d 0a 0d |al_condi|tion)...|
|000018b0| 0a 46 75 6c 6c 20 53 79 | 6e 74 61 78 3a 0d 0a 25 |.Full Sy|ntax:..%|
|000018c0| 46 6f 72 45 61 63 68 50 | 61 72 65 6e 74 52 65 6c |ForEachP|arentRel|
|000018d0| 28 3c 73 65 70 61 72 61 | 74 6f 72 3e 29 20 7b 0d |(<separa|tor>) {.|
|000018e0| 0a 3c 72 65 6c 61 74 69 | 6f 6e 73 68 69 70 20 63 |.<relati|onship c|
|000018f0| 6f 64 65 3e 0d 0a 7d 0d | 0a 0d 0a 46 75 6c 6c 20 |ode>..}.|...Full |
|00001900| 53 79 6e 74 61 78 20 45 | 78 61 6d 70 6c 65 3a 0d |Syntax E|xample:.|
|00001910| 0a 25 46 6f 72 45 61 63 | 68 50 61 72 65 6e 74 52 |.%ForEac|hParentR|
|00001920| 65 6c 28 22 67 6f 22 29 | 20 7b 0d 0a 20 20 69 6e |el("go")| {.. in|
|00001930| 73 65 72 74 20 25 50 61 | 72 65 6e 74 20 76 61 6c |sert %Pa|rent val|
|00001940| 75 65 73 28 25 50 61 72 | 65 6e 74 41 74 74 73 28 |ues(%Par|entAtts(|
|00001950| 22 2c 20 22 2c 2c 3a 6e | 65 77 29 0d 0a 7d 0d 0a |", ",,:n|ew)..}..|
|00001960| 45 78 70 61 6e 73 69 6f | 6e 3a 0d 0a 69 6e 73 65 |Expansio|n:..inse|
|00001970| 72 74 20 4d 4f 56 49 45 | 5f 43 4f 50 59 20 76 61 |rt MOVIE|_COPY va|
|00001980| 6c 75 65 73 28 3a 6e 65 | 77 5f 6d 61 73 74 65 72 |lues(:ne|w_master|
|00001990| 5f 6e 75 6d 62 65 72 2c | 20 3a 6e 65 77 5f 6d 6f |_number,| :new_mo|
|000019a0| 76 69 65 5f 63 6f 70 79 | 5f 6e 75 6d 62 65 72 2c |vie_copy|_number,|
|000019b0| 20 3a 6e 65 77 5f 67 65 | 6e 65 72 61 6c 5f 63 6f | :new_ge|neral_co|
|000019c0| 6e 64 69 74 69 6f 6e 29 | 00 25 46 6f 72 45 61 63 |ndition)|.%ForEac|
|000019d0| 68 50 61 72 65 6e 74 52 | 65 6c 28 29 20 7b 0d 0a |hParentR|el() {..|
|000019e0| 7d 00 46 6f 72 45 61 63 | 68 43 68 69 6c 64 52 65 |}.ForEac|hChildRe|
|000019f0| 6c 00 2d 00 25 46 6f 72 | 45 61 63 68 43 68 69 6c |l.-.%For|EachChil|
|00001a00| 64 52 65 6c 28 29 00 42 | 61 73 69 63 20 53 79 6e |dRel().B|asic Syn|
|00001a10| 74 61 78 3a 0d 0a 25 46 | 6f 72 45 61 63 68 43 68 |tax:..%F|orEachCh|
|00001a20| 69 6c 64 52 65 6c 28 29 | 20 7b 0d 0a 3c 72 65 6c |ildRel()| {..<rel|
|00001a30| 61 74 69 6f 6e 73 68 69 | 70 20 63 6f 64 65 3e 0d |ationshi|p code>.|
|00001a40| 0a 7d 0d 0a 0d 0a 42 61 | 73 69 63 20 53 79 6e 74 |.}....Ba|sic Synt|
|00001a50| 61 78 20 45 78 61 6d 70 | 6c 65 3a 0d 0a 25 46 6f |ax Examp|le:..%Fo|
|00001a60| 72 45 61 63 68 43 68 69 | 6c 64 52 65 6c 28 29 20 |rEachChi|ldRel() |
|00001a70| 7b 0d 0a 20 20 69 6e 73 | 65 72 74 20 25 50 61 72 |{.. ins|ert %Par|
|00001a80| 65 6e 74 20 76 61 6c 75 | 65 73 28 25 50 61 72 65 |ent valu|es(%Pare|
|00001a90| 6e 74 41 74 74 73 28 22 | 2c 20 22 2c 2c 3a 6e 65 |ntAtts("|, ",,:ne|
|00001aa0| 77 29 0d 0a 7d 0d 0a 45 | 78 70 61 6e 73 69 6f 6e |w)..}..E|xpansion|
|00001ab0| 3a 0d 0a 69 6e 73 65 72 | 74 20 4d 4f 56 49 45 5f |:..inser|t MOVIE_|
|00001ac0| 43 4f 50 59 20 76 61 6c | 75 65 73 28 3a 6e 65 77 |COPY val|ues(:new|
|00001ad0| 5f 6d 61 73 74 65 72 5f | 6e 75 6d 62 65 72 2c 20 |_master_|number, |
|00001ae0| 3a 6e 65 77 5f 6d 6f 76 | 69 65 5f 63 6f 70 79 5f |:new_mov|ie_copy_|
|00001af0| 6e 75 6d 62 65 72 2c 20 | 3a 6e 65 77 5f 67 65 6e |number, |:new_gen|
|00001b00| 65 72 61 6c 5f 63 6f 6e | 64 69 74 69 6f 6e 29 0d |eral_con|dition).|
|00001b10| 0a 0d 0a 46 75 6c 6c 20 | 53 79 6e 74 61 78 3a 0d |...Full |Syntax:.|
|00001b20| 0a 25 46 6f 72 45 61 63 | 68 43 68 69 6c 64 52 65 |.%ForEac|hChildRe|
|00001b30| 6c 28 3c 73 65 70 61 72 | 61 74 6f 72 3e 29 20 7b |l(<separ|ator>) {|
|00001b40| 0d 0a 3c 72 65 6c 61 74 | 69 6f 6e 73 68 69 70 20 |..<relat|ionship |
|00001b50| 63 6f 64 65 3e 0d 0a 7d | 0d 0a 0d 0a 46 75 6c 6c |code>..}|....Full|
|00001b60| 20 53 79 6e 74 61 78 20 | 45 78 61 6d 70 6c 65 3a | Syntax |Example:|
|00001b70| 0d 0a 25 46 6f 72 45 61 | 63 68 43 68 69 6c 64 52 |..%ForEa|chChildR|
|00001b80| 65 6c 28 22 67 6f 22 29 | 20 7b 0d 0a 20 20 69 6e |el("go")| {.. in|
|00001b90| 73 65 72 74 20 25 50 61 | 72 65 6e 74 20 76 61 6c |sert %Pa|rent val|
|00001ba0| 75 65 73 28 25 50 61 72 | 65 6e 74 41 74 74 73 28 |ues(%Par|entAtts(|
|00001bb0| 22 2c 20 22 2c 2c 3a 6e | 65 77 29 0d 0a 7d 0d 0a |", ",,:n|ew)..}..|
|00001bc0| 45 78 70 61 6e 73 69 6f | 6e 3a 0d 0a 69 6e 73 65 |Expansio|n:..inse|
|00001bd0| 72 74 20 4d 4f 56 49 45 | 5f 43 4f 50 59 20 76 61 |rt MOVIE|_COPY va|
|00001be0| 6c 75 65 73 28 3a 6e 65 | 77 5f 6d 61 73 74 65 72 |lues(:ne|w_master|
|00001bf0| 5f 6e 75 6d 62 65 72 2c | 20 3a 6e 65 77 5f 6d 6f |_number,| :new_mo|
|00001c00| 76 69 65 5f 63 6f 70 79 | 5f 6e 75 6d 62 65 72 2c |vie_copy|_number,|
|00001c10| 20 3a 6e 65 77 5f 67 65 | 6e 65 72 61 6c 5f 63 6f | :new_ge|neral_co|
|00001c20| 6e 64 69 74 69 6f 6e 29 | 00 25 46 6f 72 45 61 63 |ndition)|.%ForEac|
|00001c30| 68 43 68 69 6c 64 52 65 | 6c 28 29 20 7b 0d 0a 7d |hChildRe|l() {..}|
|00001c40| 00 52 65 6c 54 65 6d 70 | 6c 61 74 65 00 2e 00 25 |.RelTemp|late...%|
|00001c50| 52 65 6c 54 65 6d 70 6c | 61 74 65 00 42 61 73 69 |RelTempl|ate.Basi|
|00001c60| 63 20 53 79 6e 74 61 78 | 3a 0d 0a 25 52 65 6c 54 |c Syntax|:..%RelT|
|00001c70| 65 6d 70 6c 61 74 65 0d | 0a 0d 0a 42 61 73 69 63 |emplate.|...Basic|
|00001c80| 20 53 79 6e 74 61 78 20 | 45 78 61 6d 70 6c 65 3a | Syntax |Example:|
|00001c90| 0d 0a 25 52 65 6c 54 65 | 6d 70 6c 61 74 65 0d 0a |..%RelTe|mplate..|
|00001ca0| 45 78 70 61 6e 73 69 6f | 6e 3a 0d 0a 45 78 70 61 |Expansio|n:..Expa|
|00001cb0| 6e 64 73 20 74 68 65 20 | 63 6f 64 65 20 66 72 61 |nds the |code fra|
|00001cc0| 67 6d 65 6e 74 20 66 6f | 72 20 74 68 65 20 72 65 |gment fo|r the re|
|00001cd0| 6c 61 74 69 6f 6e 73 68 | 69 70 0d 0a 63 6f 72 72 |lationsh|ip..corr|
|00001ce0| 65 73 70 6f 6e 64 69 6e | 67 20 74 6f 20 74 72 69 |espondin|g to tri|
|00001cf0| 67 67 65 72 20 74 79 70 | 65 2e 00 25 52 65 6c 54 |gger typ|e..%RelT|
|00001d00| 65 6d 70 6c 61 74 65 00 | 00 a5 00 |emplate.|... |
+--------+-------------------------+-------------------------+--------+--------+